package org.example.examfx02.entity;

public class CourseRequire extends Course{
    private Integer credit;
    public CourseRequire(){
        this.type = 0;
    }
    public CourseRequire(String id,String name,int chooseNum,String teacherId,int credit){
        super(id,name,chooseNum,teacherId);
        this.type = 0;
        this.credit = credit;
    }
    public Integer getCredit() {
        return credit;
    }

    public void setCredit(int credit) {
        this.credit = credit;
    }
}
